<?php
/**
 * Add, update, or delete a CT_RaidTracker configuration settings
 *
 * @category Plugins
 * @package CT_RaidTrackerImport
 * @copyright (c) 2006, EQdkp <http://www.eqdkp.com>
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 *
 * @author Garrett Hunter <loganfive@blacktower.com>
 * $Rev: 15 $ $Date: 2007-03-12 03:13:16 +0000 (Mon, 12 Mar 2007) $
 */

// EQdkp required files/vars
define('EQDKP_INC', true);
define('IN_ADMIN', true);
define('PLUGIN', 'ctrt');

$eqdkp_root_path = './../../';

include_once($eqdkp_root_path . 'common.php');
include_once('config_ctrt.php');

$ctrt = $pm->get_plugin('ctrt');

if ( !$pm->check(PLUGIN_INSTALLED, 'ctrt') )
{
    message_die('The CT_RaidTracker Import plugin is not installed.');
}

$user->check_auth('u_member_list');

/**
 * Handle CT_RaidTracker Import admin events
 * @subpackage ManageCTRT
 */
class ManageCTRT_Admin extends EQdkp_Admin {

    function ManageCTRT_Admin()
    {
        global $db, $eqdkp, $user, $tpl, $pm;
        global $SID;

        parent::eqdkp_admin();

        $this->assoc_params(array(
            'config' => array(
                'name'    => 'mode',
                'value'   => 'config',
                'process' => 'config',
                'check'   => 'a_members_man')
        ));
    }

    function config () {
        global $db, $eqdkp, $user, $tpl, $pm;
        global $SID;

        include('admin/ctrt_config.php');
        $extension = new CTRT_Config;
        $extension->process();
    }

}

$ManageCTRT_Admin = new ManageCTRT_Admin;
$ManageCTRT_Admin->process();

?>